package com.haorui.lygyd.wxapi.dto;

import com.haorui.base.core.utils.BeanUtil;
import com.haorui.base.core.utils.DefaultField;
import com.haorui.base.core.vo.DataTransferObject;
import com.haorui.lygyd.wxapi.entity.WXBankAccountEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 郭飞
 * @version 1.0
 * @project znsm
 * @package com.haorui.jxkf.wxapi.dto
 * @createDate 2018/4/16 0016 11:36
 * @modfiyDate
 * @function
 */
@Data
public class WXBankAccountDto implements DataTransferObject<WXBankAccountEntity> {
    private String id;
    @ApiModelProperty(value = "开户行")
    private String openingBank;
    @ApiModelProperty(value = "开户行地址")
    private String openingBankAddress;
    @ApiModelProperty(value = "银行卡号")
    private String bankCard;
    @ApiModelProperty(value = "开户人姓名")
    private String openingAccountName;
    @ApiModelProperty(value = "预留手机号")
    private String phone;
    @ApiModelProperty(value = "会员ID")
    private String memberId;
    @ApiModelProperty(value = "是否是默认银行账户")
    @DefaultField
    private Boolean morenAccount=false;
    @Override
    public WXBankAccountEntity buildPO() {
        WXBankAccountEntity wxBankAccountEntity=new WXBankAccountEntity();
        BeanUtil.beanCopyIgnoreDefault(this,wxBankAccountEntity);
        return wxBankAccountEntity;
    }

    @Override
    public String getId() {
        return this.id;
    }
}
